package com.mingmen.supplier.model;

import java.util.List;

public class ShopBean {


    /**
     * code : 0
     * message : 操作成功
     * time : 2020-08-08 17:03:55
     * data : [{"categoryId":"1","categoryName":"新鲜蔬菜","parentId":"0","havaChildren":1,"children":[{"categoryId":"100","categoryName":"根茎类","parentId":"1","havaChildren":1,"children":[]},{"categoryId":"101","categoryName":"叶菜类","parentId":"1","havaChildren":1,"children":[]},{"categoryId":"102","categoryName":"葱姜类","parentId":"1","havaChildren":1,"children":[]},{"categoryId":"103","categoryName":"茄果类","parentId":"1","havaChildren":1,"children":[]}]},{"categoryId":"2","categoryName":"海鲜水产","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"3","categoryName":"肉禽虫","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"4","categoryName":"调料干货","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"5","categoryName":"米面粮油","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"6","categoryName":"鲜蛋豆品","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"7","categoryName":"酒水饮料","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"8","categoryName":"半成品","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"9","categoryName":"休闲食品","parentId":"0","havaChildren":1,"children":[]},{"categoryId":"10","categoryName":"水果类","parentId":"0","havaChildren":1,"children":[]}]
     */

    private int code;
    private String message;
    private String time;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * categoryId : 1
         * categoryName : 新鲜蔬菜
         * parentId : 0
         * havaChildren : 1
         * children : [{"categoryId":"100","categoryName":"根茎类","parentId":"1","havaChildren":1,"children":[]},{"categoryId":"101","categoryName":"叶菜类","parentId":"1","havaChildren":1,"children":[]},{"categoryId":"102","categoryName":"葱姜类","parentId":"1","havaChildren":1,"children":[]},{"categoryId":"103","categoryName":"茄果类","parentId":"1","havaChildren":1,"children":[]}]
         */

        private String categoryId;
        private String categoryName;
        private String parentId;
        private int havaChildren;
        private List<ChildrenBean> children;

        public String getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(String categoryId) {
            this.categoryId = categoryId;
        }

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public int getHavaChildren() {
            return havaChildren;
        }

        public void setHavaChildren(int havaChildren) {
            this.havaChildren = havaChildren;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class ChildrenBean {
            /**
             * categoryId : 100
             * categoryName : 根茎类
             * parentId : 1
             * havaChildren : 1
             * children : []
             */

            private String categoryId;
            private String categoryName;
            private String parentId;
            private int havaChildren;

            public boolean isChecked() {
                return isChecked;
            }

            public void setChecked(boolean checked) {
                isChecked = checked;
            }

            private boolean isChecked;
            private List<?> children;

            public String getCategoryId() {
                return categoryId;
            }

            public void setCategoryId(String categoryId) {
                this.categoryId = categoryId;
            }

            public String getCategoryName() {
                return categoryName;
            }

            public void setCategoryName(String categoryName) {
                this.categoryName = categoryName;
            }

            public String getParentId() {
                return parentId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public int getHavaChildren() {
                return havaChildren;
            }

            public void setHavaChildren(int havaChildren) {
                this.havaChildren = havaChildren;
            }

            public List<?> getChildren() {
                return children;
            }

            public void setChildren(List<?> children) {
                this.children = children;
            }
        }
    }
}
